package com.geeksaga.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author newbie
 * @since 0.1
 */
@Controller
public class ViewController {
    
	protected static final Log logger = LogFactory.getLog(ViewController.class);
	
    /**
     * @param model
     * @return
     */
    @RequestMapping(value = { "/*.do", "/user/*.do", "/admin/*.do", "/bbs/*.do", "*.do", "/*/*.do", "/*/*/*.do"})
    public ModelMap index(HttpServletRequest request, HttpSession sesstion, ModelMap model) {
        return model;
    }
    
    /**
     * @param model
     * @return
     */
    @RequestMapping("/error/denied.do")
    public ModelMap denied(ModelMap model) {
        return model;
    }
}